/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

private ["_plane","_num","_lib","_libplane"];

_plane = _this select 0;
_num = 0;

for [{_n = 1},{_n <= (count RUM_FXDAircraft)},{_n = _n + 1}] do {
	_lib = RUM_FXDAircraft select (_n - 1);
	_libplane = _lib select 0;
	if (_libplane == _plane) then {
		_num = (_n - 1);
	};
};

/* removes the plane from the PDA menu array and sends to all players */
RUM_FXDAircraft set [_num,"del"];
RUM_FXDAircraft = RUM_FXDAircraft - ["del"];
publicVariable RUM_FXDAircraft;

/* exits script */
if (true) exitwith {};